"Use the Help menu to learn more about HoWSample. This application offers help via the “Help on Wheels” help server application, as well as Balloon Help™.",
include "HoWSample Help alias" 'alis' (0) as 'alis' (rHelpFileAlias);
resource 'SIZE' (-1) {
reserved,
acceptSuspendResumeEvents,
reserved,
canBackground,
doesActivateOnFGSwitch,
backgroundAndForeground,
dontGetFrontClicks,
ignoreAppDiedEvents,
is32BitCompatible,
isHighLevelEventAware,
localAndRemoteHLEvents,
notStationeryAware,
dontUseTextEditServices,
reserved,
reserved,
reserved,
60 * 1024,
50 * 1024
};
resource 'hfdr' (kHMHelpID) {
HelpMgrVersion,
hmDefaultOptions,
0,
0,
{
HMStringItem {
"This application is a sample client of the “Help on Wheels” help server. Its help file is a manual describing how to write a help client application."
"Shows HoWSample credit and version information.",
"",
"",
""
}
}
};
resource 'MENU' (mFile) {
mFile,
textMenuProc,
allEnabled,
enabled,
"File",
{ /* array: 1 elements */
/* [1] - iQuit */
"Quit", noIcon, "Q", noMark, plain
}
};
resource 'hmnu' (mFile, purgeable) {
HelpMgrVersion,
hmDefaultOptions,
0,
0,
HMSkipItem {
},
{
HMStringItem {
"File menu\n\nUse this menu to quit HoWSample.",
"",
"",
""
},
HMStringItem {
"Quits HoWSample.",
"",
"",
""
}
}
};
resource 'MENU' (mEdit) {
mEdit,
textMenuProc,
0x7FFFFFC0,
disabled,
"Edit",
{ /* array: 6 elements */
/* [1] - iUndo */
"Undo", noIcon, "Z", noMark, plain,
/* [2] */
"-", noIcon, noKey, noMark, plain,
/* [3] - iCut */
"Cut", noIcon, "X", noMark, plain,
/* [4] - iCopy */
"Copy", noIcon, "C", noMark, plain,
/* [5] - iPaste */
"Paste", noIcon, "V", noMark, plain,
/* [6] - iClear */
"Clear", noIcon, noKey, noMark, plain
}
};
resource 'hmnu' (mEdit, purgeable) {
HelpMgrVersion,
hmDefaultOptions,
0,
0,
HMSkipItem {
},
{
HMStringItem {
"Edit menu\n\nUse this menu to work with text.",
"Edit menu\n\nNot available because HoWSample has no editing functions.",
"",
""
},
HMStringItem {
"",
"Not available because HoWSample does not allow actions to be undone.",
"",
""
},
HMSkipItem {
},
HMStringItem {
"Removes the selected text and places it in the Clipboard.",
"Removes the selected text and places it in the Clipboard. Not available because no text is selected.",
"",
""
},
HMStringItem {
"Places a copy of the selected text in the Clipboard. The selected text remains where it is.",
"Places a copy of the selected text in the Clipboard. Not available because no text is selected.",
"",
""
},
HMStringItem {
"Places the contents of the Clipboard at the insertion point, or in place of the current selection.",
"Places the contents of the Clipboard at the insertion point, or in place of the current selection. Not available because there is no text in the Clipboard, or because no text is being edited.",
"",
""
},
HMStringItem {
"Removes the selected text without placing it in the Clipboard.",
"Removes the selected text without placing it in the Clipboard. Not available because no text is selected.",
"",
""
}
}
};
resource 'MENU' (mDemo) {
mDemo,
textMenuProc,
allEnabled,
enabled,
"Demo",
{ /* array: 1 elements */
/* [1] - iDoNothing */
"Do-Nothing…", noIcon, "D", noMark, plain
}
};
resource 'hmnu' (mDemo, purgeable) {
HelpMgrVersion,
hmDefaultOptions,
0,
0,
HMSkipItem {
},
{
HMStringItem {
"Demo menu\n\nUse this menu for a demonstration of how to attach help information to menus and dialogs.",
"",
"",
""
},
HMStringItem {
"Does nothing, except bring up the do-nothing dialog.",
"",
"",
""
}
}
};
resource 'hmnu' (kHMHelpMenuID, purgeable) {
HelpMgrVersion,
hmDefaultOptions,
0,
0,
HMSkipItem {
},
{
HMStringItem {
"Displays tutorial help for HoWSample using the “Help on Wheels” help server application.",
"Not available, perhaps because the “HoWSample Help” file is missing or invalid.",
"",
""
},
HMSkipItem {
},
HMStringItem {
"Displays help about HoWSample dialogs using the “Help on Wheels” help server application.",
"Not available, perhaps because the “HoWSample Help” file is missing or invalid.",
"",
""
},
HMStringItem {
"Displays help about HoWSample menus using the “Help on Wheels” help server application.",
"Not available, perhaps because the “HoWSample Help” file is missing or invalid.",
"",
""
}
}
};
resource 'MBAR' (rMenuBar, preload) {
{ /* array MenuArray: 4 elements */
/* [1] */
mApple,
/* [2] */
mFile,
/* [3] */
mEdit,
/* [4] */
mDemo
}
};
include "HoWSample.sounds";
resource 'STR#' (rMessages, purgeable) {
{ /* array StringArray: 13 elements */
/* [1] - iGenericErrorMessage */
"An internal error has occurred. Please contact the author as described in “HoWSample Help”, citing error number %d.",
/* [2] - iHelpNotAvailable */
"Help is not available. The “HoWSample Help” file may be missing or invalid.",